namespace Aesha.WoW.Broker.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class v6 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.ItemSummaries",
                c => new
                    {
                        ItemId = c.Int(nullable: false, identity: true),
                        SeenCount = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.ItemId);
            
            AlterColumn("dbo.Items", "Name", c => c.String(nullable: false, maxLength: 50, unicode: false));
            AlterColumn("dbo.Items", "Description", c => c.String(maxLength: 255, unicode: false));
            AlterColumn("dbo.Items", "Icon", c => c.String(maxLength: 50, unicode: false));
        }
        
        public override void Down()
        {
            AlterColumn("dbo.Items", "Icon", c => c.String());
            AlterColumn("dbo.Items", "Description", c => c.String());
            AlterColumn("dbo.Items", "Name", c => c.String(nullable: false));
            DropTable("dbo.ItemSummaries");
        }
    }
}
